package com.yuke.cloud.service.omc.payUtil;



public class GetRSA {
     public static String getRSA(String str,String publicKeyPKCS8) throws Exception {
         byte[] cipherData=RSAEncrypt.encrypt(RSAEncrypt.loadPublicKeyByStr(publicKeyPKCS8),str.getBytes());
         String cipher=Base64.encode(cipherData);
         return cipher;
     }





}
